package com.smz.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("t_cargo")
public class TCargo {
    @TableId(value = "id", type = IdType.AUTO)
    private int id;
    private String catgoNo;
    private String shelvesNo;
    private String damId;
    private String wareId;
    private String product;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private java.sql.Timestamp creatTime;
    private String status;
    private String batch;
    //dy
    @TableField(exist = false)
    private TShelves tShelves;
    private Integer num;
    @TableField(exist = false)
    private  String beforeCatgoNo;
    @TableField(exist = false)
    private List<TProduct> tProducts;
    @TableField(exist = false)
    private TMenu tMenu;
}
